package linkedlist;

public class Mylinkedlist {
    static class ListNode{
        public int val;
        public ListNode next;

        public ListNode(int val) {
            this.val = val;
            this.next=null;
        }
    }
    public void creat(){
        ListNode Node1 = new ListNode(1);
        ListNode Node2 = new ListNode(2);
        ListNode Node3 = new ListNode(3);
        ListNode Node4 = new ListNode(4);
        ListNode Node5 = new ListNode(5);
        Node1.next=Node2;
        Node2.next=Node3;
        Node3.next=Node4;
        Node4.next=Node5;
    }
}
